<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <title>Document</title>
</head>
<body>
<div id="app">
    <p v-show="num === 1">你好，我是{{obj.name}},我今年{{obj.info.age}}岁</p>
    <p v-show="num === 2">我今年16岁</p>
    <p v-show="true">为true 时显示</p>
    <p v-show="false">为 false 时不显示</p>
    <button @click="num++">按钮</button>
</div>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            num:1,
            obj:{
                info:{
                    age:18
                },
                name:'彭于晏'
            }
        }
    })
</script>
</body>

</html>

